<?php
namespace Common\Model;

use Think\Model;


/**
 * Description of ActivityModel
 * 用户动态
 * @author Administrator
 */
class ActivityModel extends Model{
    
    /**
     * 
     * @param type $id
     * @return null
     */
    function get_activity($id){
        if($id == null){
            return null;
        }
        $ActivityModel = new \Common\Model\ActivityModel();
        return $ActivityModel->where("id = ".$id) ->find();
    }
    
    /**
     * 删除动态
     * @param type $id
     * @return type
     */
    function delete_activity($id){
        $ActivityModel = new \Common\Model\ActivityModel();
        return $ActivityModel->where("id = ".$id) ->delete();;
    }
    

}
